![]() |
DrawThemeFocusRegion |
||||
Header: | Appearance.h | Carbon status: | Supported | |
Draws or erases a focus ring around a specified region.
OSStatus DrawThemeFocusRegion ( inRegion, Boolean inHasFocus );
A value of type RgnHandle. Before calling DrawThemeFocusRegion, set the region to the position around which to draw the focus ring, in local coordinates. The focus ring is drawn outside the region that is passed in, and it can be outset a maximum of 3 pixels.
A value of type Boolean. Pass true to draw the focus region. Pass false to erase the focus region.
A result code.
Your application can use the DrawThemeFocusRegion function to draw a theme-compliant focus ring. The presence of a focus ring indicates whether an item has keyboard focus.
This function is available with Appearance Manager 1.0.1 and later.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)